import {setcookie} from '../../utils/cookies'
import {getcookie} from '../../utils/cookies'
import {routerRedux} from 'dva/router'
import {EXPIRE_SECONDS} from '../../utils/constants'
export default {
  namespace: 'playLive',
  state: {},
  reducers: {},
  effects: {
    *goBack({payload:values},{call,put}){
      // console.log("-------------values",values)
      if (values.item.id == 1) {
        yield put(routerRedux.replace({pathname:'/classIndex',}))
      }
      if (values.item.id == 2) {
        yield put(routerRedux.replace({pathname:'/courseDetail',}))
      }
    }
  },
  subscriptions: {},
};
